package com.you.weixinpay.service;

import com.alipay.api.AlipayApiException;
import com.you.weixinpay.result.Result;

import java.util.Map;

public interface AliPayService {
    String tradeCreate(Long productId);

    void processOrder(Map<String, String> params);

    Result<String> cancelOrder(String orderNo) throws AlipayApiException;

    String queryOrder(String orderNo);

    void refund(String orderNo, String reason);

    String queryRefund(String orderNo);
}
